package com.example.testdemo.utils;

/**
 * <p>
 *
 * </p>
 *
 * @author 永健
 * @since 2020-03-29 01:07
 */
public class StringUtils {
    public static boolean isNull(Object obj) {
        return obj == null ? true : false;
    }

    public static boolean isNotNull(Object obj) {
        return obj != null ? true : false;
    }

    public static boolean isBlank(String str) {
        if (isNull(str)) {
            return false;
        }
        if (str.length() == 0 || str.equals("")) {
            return true;
        }

        return false;
    }
}
